package com.tripwego.client.ui.pageVoyage;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.Composite;

public abstract class FormAbstract extends Composite implements IVoyageView, ClickHandler {

	protected Presenter presenter;

	protected EventBus eventBus;

	/*
	 * Elements graphiques
	 */

	/**
	 * 
	 */
	public FormAbstract() {
		super();
	}

	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;
	}

	@Override
	public void setEventBus(EventBus eventBus) {
		this.eventBus = eventBus;
	}

	@Override
	public void init() {
	}

	public void show() {
		asWidget().setVisible(true);
	}

	public void hide() {
		asWidget().setVisible(false);
	}
}
